package cn.qzbook.service;

import cn.qzbook.dao.StudentDao;
import cn.qzbook.util.MybatisUtil;
import org.junit.Test;

public class StudentService {


    private StudentDao dao = (StudentDao)MybatisUtil.sqlSession(true).getMapper(StudentDao.class);

    public void deleteStu(int id){
        dao.deleteStu(id);
    }

    @Test
    public void test(){
        new StudentService().deleteStu(5);
    }


}
